<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\HotWordsWidget;
use frontend\components\RctCreditdetailWidget;
use frontend\components\RctDocWidget;
use frontend\components\HotDocWidget;
/* @var $this yii\web\View */
/* @var $searchModel common\models\DocSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

// $this->title = '词条';
// $this->params['breadcrumbs'][] = $this->title;
?>

<div class="container" style="background:#303030 ;color:#FFF">
  <div class="row">
    <ol class="breadcrumb" style="background:#303030 ;font-size:20px;color:#FFF">
		<li><a href="<?= Yii::$app->homeUrl;?>">首页</a></li>
		<li>词条</li>
	</ol>
     <div class="col-md-4">
	 <h3>热门词条</h3>
	  <?= HotDocWidget::widget(['hotDocs'=>$hotDocs])?>
	 </div>

		
	<div class="col-md-4">
	<h3>最新词条</h3>
     <?= RctDocWidget::widget(['recentDocs'=>$recentDocs])?>
	 </div>
	 <div class="col-md-4" >
	 <h3>其他</h3>

			
			<div class="tagcloudbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-tags" aria-hidden="true"></span> 热门关键字</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= HotWordsWidget::widget(['words'=>$words])?>
				  </li>
				</ul>			
			</div>
			
			
			<div class="commentbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-glass" aria-hidden="true"></span> 用户贡献榜</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= RctCreditdetailWidget::widget(['recentCreditdetails'=>$recentCreditdetails])?>
				  </li>
				</ul>			
			</div>
	 </div>
  </div>
</div>
